import request from '@/utils/request'

// 查询客户触达记录列表
export function listCdrecords(query) {
  return request({
    url: '/khcd/cdrecords/list',
    method: 'get',
    params: query
  })
}

// 查询客户触达记录详细
export function getCdrecords(id) {
  return request({
    url: '/khcd/cdrecords/' + id,
    method: 'get'
  })
}

// 新增客户触达记录
export function addCdrecords(data) {
  return request({
    url: '/khcd/cdrecords',
    method: 'post',
    data: data
  })
}

// 修改客户触达记录
export function updateCdrecords(data) {
  return request({
    url: '/khcd/cdrecords',
    method: 'put',
    data: data
  })
}

// 删除客户触达记录
export function delCdrecords(id) {
  return request({
    url: '/khcd/cdrecords/' + id,
    method: 'delete'
  })
}

// 导出客户触达记录
export function exportCdrecords(query) {
  return request({
    url: '/khcd/cdrecords/export',
    method: 'get',
    params: query
  })
}